import java.util.Random;

public class text2 {
    public static void main(String[] args) {
        char[]arr= new char[52];
        for (int i = 0; i < arr.length; i++) {
            if (i<=25){
                arr[i]=(char) (97+i);
            }else {
                arr[i]=(char) (65+i-26);
            }

        }
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i]+" ");

        }
        System.out.println();
        String result=" ";
        Random r=new Random();
        for (int i = 0; i < 4; i++) {
            int c=r.nextInt(arr.length);
            result=result+arr[c];
            System.out.print(arr[c]);
        }
        int num= r.nextInt(10);
        result=result+num;
        System.out.println(result);

    }

}
